using System.Windows.Markup;

namespace Infralution.Localization.Wpf
{
	[MarkupExtensionReturnType(typeof(XmlLanguage))]
	public class UICultureExtension1 : ManagedMarkupExtension1
	{
		private static MarkupExtensionManager1 markupExtensionManager1_0 = new MarkupExtensionManager1(2);

		public static MarkupExtensionManager1 MarkupManager => markupExtensionManager1_0;

		public UICultureExtension1()
			: base(markupExtensionManager1_0)
		{
		}

		protected override object GetValue()
		{
			return XmlLanguage.GetLanguage(CultureManager1.UICulture.IetfLanguageTag);
		}

		public static void UpdateAllTargets()
		{
			markupExtensionManager1_0.UpdateAllTargets();
		}
	}
}
